pragma License (GPL);
--
-- drk-bigint-test-less_01.adb
--
-- Copyright (C) 2012 - Thibault BUREL
--
-- This file is part of DRK.BigRat.
--
-- DRK.BigRat is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- DRK.BigRat is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with DRK.BigRat.  If not, see <http://www.gnu.org/licenses/>
--

--
--  Comparison of two identicals bigints but with differents sizes.
--  Left is bigger.
--
separate(DRK.BigInt.Test)
procedure Less_01 (T : in out Test_Cases.Test_Case'Class)
is
   pragma Warnings(Off, T);

   Left  : Instance;
   Right : Instance;

begin
   Digit_List.Append (Left.Mantissa , Chunck'Last);
   Digit_List.Append (Left.Mantissa , 0);
   Digit_List.Append (Right.Mantissa, Chunck'Last);

   Assert (not (Left < Right), "Wrong answer");

end Less_01;
